﻿using System.ServiceProcess;
using System.Threading;

namespace GatewayBizProcess
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        static void Main()
        {
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[]
            {
                new TinzDataGateway()
            };
            ServiceBase.Run(ServicesToRun);

            //new TinzDataGateway().Main();
            //Thread.Sleep(1000 * 60 * 60);
            //using (var pGxtCtx = new PlatformGxtContext())
            //{
            //  var a=  pGxtCtx.view_pilot_data_day.OrderByDescending(t=>t.datatime).Take(50);
            //    foreach (var day in a)
            //    {
            //        Console.WriteLine(day.MN+"\t"+day.datatime+"\t"+day.pollutant+"\t"+day.cou);
            //    }
            //}
            //Console.ReadLine();
        }
    }
}
